                            
<?php
    require_once('connect.php');
    $db_product = new database("SELECT pro_id, pro_name, pro_price_sell, pro_img
                            FROM product
                            LIMIT 0, 12");
    $arr_product = $db_product->render();
    foreach($arr_product as $key => $proInfo){
        //$db_pro_img = new database("SELECT img_name
//                                    FROM images_product
//                                    WHERE pro_id = ".$proInfo['pro_id']."
//                                    LIMIT 1");
//        $arr_img = $db_pro_img->render();
//        
        
?>
    <div class="wrap-product" id="<?php echo $proInfo['pro_id'];?>">
        <img class="product-img" src="images/product/<?php echo $proInfo['pro_img'];?>"/>
        <div class="clear"></div>
        <p class="product-name"><?php echo $proInfo['pro_name'];?></p>
        <span class="product-price"><?php echo $proInfo['pro_price_sell'];?></span>
    </div><!--end wrap-product-->
<?php
    }
    
?>